#include"mystdio.h"
#include<unistd.h>

int main()
{
  _FILE* fp=_fopen("mytest.txt",'a');
  if(fp==NULL)
    return 1;
  const char* msg="Hello World\n";
  int cnt=10;
  while(cnt)
  {
    _fwrite(fp,msg,strlen(msg));
    sleep(1);
    cnt--;
  }
  _fclose(fp);
  return 0;
}
